package com.tqhh.meimei.controller;

import com.tqhh.meimei.service.ContentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;



@RequestMapping("/mm")
@RestController
public class MMController extends BaseController {
    @Autowired
    ContentsService contentsService;

    @PostMapping("/archives")
    public ModelMap archives(@RequestBody List<Long> cids) {
        return resultMapper(contentsService.getArchives(cids));
    }
}
